/**
* @author maze | guavestudios.com
* @license MIT License see LICENSE.TXT
* @version 0.1
*/

package com.guavestudios.fcon.events {
	import com.guavestudios.fcon.api.IConsole;

	public class ConsoleExecuteEvent extends ConsoleEvent{
		
		public static const EXECUTE:String="ConsoleEvent.EXECUTE";
		public static const EXECUTE_CANCELD:String="ConsoleEvent.EXECUTE_CANCELD";
		public static const EXECUTE_OK:String="ConsoleEvent.EXECUTE_OK";
		public static const EXECUTE_USER:String="ConsoleEvent.EXECUTE_USER";
		
		private var execute:Array;
		private var cancel:Boolean=false;
		
		/**
		* create a ConsoleExecuteEvent
		* @param	type	the type
		* @param	c	the console
		* @param	exe	the executing params
		*/
		public function ConsoleExecuteEvent(type:String,c:IConsole,exe:Array) {
			super(type,c);
			execute=exe;
		}
		/**
		* get the params for the execute
		* @return
		*/
		public function getExecute():Array
		{
			return execute;
		}
		/**
		* get if the event is cancled
		* @return true if canceld, false if not
		*/
		public function get Cancel():Boolean
		{
			return cancel;
		}
		public function set Cancel(value:Boolean):void {
			cancel=value;
		}
		
	}
	
}
